package com.gimi.cloud.bbp.manage.consumer.service.prod;

import com.gimi.cloud.bbp.common.exception.MsgException;
import com.gimi.cloud.bbp.common.utils.reqhead.Response;

import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by lixj on 2017/12/18.
 */
public interface EcProdCategoryService {

    /**
     * 获取商品品类列表
     * @return 菜单列表
     */
    Response getCategoryList(@RequestBody String requestBody, HttpServletRequest request, HttpServletResponse response);

    /**
     * 添加商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    Response addCategory(String requestBody, HttpServletRequest request, HttpServletResponse response) throws Exception;

    /**
     * 更新商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    Response updateCategory(String requestBody, HttpServletRequest request, HttpServletResponse response) throws Exception;

    /**
     * 删除商品品类
     * @param requestBody
     * @param request
     * @param response
     */
    Response deleteCategory(String requestBody, HttpServletRequest request, HttpServletResponse response);
    /**
     * 获取商品品类列表(分页)
     * @return 菜单列表
     */
    Response getCategoryPageList(String requestBody, HttpServletRequest request, HttpServletResponse response) throws MsgException;

    /**
     * 转跳到编辑商品品类界面
     * @return 菜单列表
     */
    Response gotoEditProdCategory(String requestData, HttpServletRequest request, HttpServletResponse response) throws MsgException;
    /**
     * 根据参数查询出所有的对应商品品类列表
     * @param requestData
     * @param request
     * @param response
     */
    Response searchCategoryListByGrade(String requestData, HttpServletRequest request, HttpServletResponse response);

	/**
	 * 商品品类图标文件上传
	 * @param request
	 * @param response
	 */
    Response iconUpload(HttpServletRequest request, HttpServletResponse response);
}
